import type { DistributionDeviceStatus } from "../components/types";

/**
 * 搅拌电机
 */
const mixingMotor: DistributionDeviceStatus = {
  status: "green",
  title: "搅拌电机",
  partId: "",
  characteristicItems: {
    currentSpeed: {
      label: "当前转速",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 左真空滤芯
 */
const leftVacuumFilterCore: DistributionDeviceStatus = {
  status: "green",
  title: "左真空滤芯",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 中心轴
 */
const centerAxis: DistributionDeviceStatus = {
  status: "green",
  title: "搅拌轴承",
  partId: "",
  characteristicItems: {
    currentElectricCurrent: {
      label: "当前电流",
      value: "--",
      unit: "mA"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 分散电机
 */
const dispersionMotor: DistributionDeviceStatus = {
  status: "green",
  title: "分散电机",
  partId: "",
  characteristicItems: {
    currentSpeed: {
      label: "当前转速",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 右真空滤芯
 */
const rightVacuumFilterCore: DistributionDeviceStatus = {
  status: "green",
  title: "右真空滤芯",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 密封圈
 */
const sealingRing: DistributionDeviceStatus = {
  status: "green",
  title: "密封圈",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

const distributionDeviceStatusList = [
  mixingMotor,
  leftVacuumFilterCore,
  centerAxis,
  dispersionMotor,
  rightVacuumFilterCore,
  sealingRing
];

export { distributionDeviceStatusList };
